package com.huamao.zh.model;

import java.text.SimpleDateFormat;
import java.util.Date;

import org.springframework.stereotype.Component;

@Component
public class TimingTest {

	// @Scheduled(cron = "0 05 15 * * ? ")
	public void executeUploadTask() {

		// Thread current = Thread.currentThread();
		// System.out.println("定时任务2:" + current.getId());
		Date date = new Date();
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
		String format = sdf.format(date);
		System.err.println(format);
	}
}
